<!DOCTYPE html>
<#assign ctx=request.contextPath />
<html ng-app="app">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>${wx.name?if_exists}</title>
    <script type="text/javascript" src="${ctx}/assets/v2/js/lib/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/lib/angular.min.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/lib/angular-route.min.js"></script>
    <script src="//cdn.bootcss.com/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.min.js"></script>
    <script src="//cdn.bootcss.com/ng-dialog/0.5.6/js/ngDialog.min.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/gps.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/lib/jquery.touchSlider.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/wx.js"></script>
<@compress single_line=true>
    <script type="text/javascript">
        var gobals = angular.module('gobals', []);
        gobals.service('gobalService', function () {
            this.config = function () {
                return {
                    sysKey: '${appkey}',
                    appId: '${appId}',
                        <#if ack??>ack: '${ack}'<#else>ack: null</#if>
                }
            }
        });

        var _obj = getQueryString();
        if (isFromWx() && !_obj.code) {
            var baseURL = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri='
                          + encodeURIComponent(location.href)
                          + '&response_type=code&scope=snsapi_base&state=null#wechat_redirect';
            window.location.replace(baseURL);
        }
    </script>
</@compress>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/services.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/directives.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/controllers.js"></script>
    <script type="text/javascript" src="${ctx}/assets/v2/js/app/app.js"></script>
    <link rel="stylesheet" href="${ctx}/assets/v2/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="${ctx}/assets/v2/css/sm.css"/>
    <link rel="stylesheet" href="${ctx}/assets/v2/css/style.css"/>
    <link rel="stylesheet" href="${ctx}/assets/v2/css/wx_style.css"/>
    <link rel="stylesheet" href="${ctx}/assets/v2/css/DateTimePicker.css"/>
    <link rel="stylesheet" href="//cdn.bootcss.com/ng-dialog/0.5.6/css/ngDialog.min.css"/>
    <link rel="stylesheet"
          href="//cdn.bootcss.com/ng-dialog/0.5.6/css/ngDialog-theme-default.min.css"/>
</head>
<body>
<#if (menucount > 1) >
<nav>
    <div class="nav_list">
        <ul class="nav_line">
            <#if daijia>
                <li><a href="#/daijia" id="daijia">代驾</a></li></#if>
            <#if zhuanche>
                <li><a href="#/zhuanche" id="zhuanche">用车</a></li></#if>
            <#if paotui>
                <li><a href="#/delivery" id="delivery">跑腿</a></li></#if>
        </ul>
    </div>
</nav>
</#if>
<div ng-view></div>
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</body>
</html>
